<div id="registration">
	<h1><%= t("Sign Up") %></h1>
	
	
<%= form_for @user do |f| %>
<div class="error">
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
</div>
  <div class="field">
    <%= f.label :email, t('email') %><br />
    <%= f.text_field :email %>
  </div>
  <div class="field">
    <%= f.label :password, t('password') %><br />
    <%= f.password_field :password %>
  </div>
  
  <div class="field">
    <%= f.label "Retype password", t('Retype password') %><br />
    <%= f.password_field :password_confirmation %>
  </div>

  <div class="field">
    <%= f.label :fullname, t('fullname') %><br />
    <%= f.text_field :fullname %>
  </div>
    <div class="field">
    <%= f.label :phone, t('phone') %><br />
    <%= f.text_field :phone %>
  </div>
  <div class="field">
    <%= f.label :address, t('address') %><br />
    <%= f.text_field :address %>
  </div>
  <div class="field">
    <%= f.label :idnumber, t('idnumber') %><br />
    <%= f.text_field :idnumber %>
  </div>
  
  <div class="field">
	<%= f.label "Verify Code" %><br />
  	<%= recaptcha_tags %>
  </div>
  <br>
  <div class="actions">
    <%= f.submit t("Create User"), :class => 'btn'%>
  </div>
<% end %>


	
	<%= link_to t('Back'), :controller => 'default',:action => 'index' %>
</div>